EngineOptions

The options that are used to configure Engine instances.

Types

Link copied to clipboard
class Builder
A builder class to construct engine options.

Functions

Link copied to clipboard
open fun chromiumDir(): Path
Returns an absolute path to the directory where Chromium binaries are located or the empty string if it was not set.
Link copied to clipboard
Returns an Optional that contains the disk cache size in bytes or an empty Optional if the disk cache size was not set.
Link copied to clipboard
Returns an Optional that contains a string representing the Google API key or an empty Optional if the Google API key was not set.
Link copied to clipboard
Returns an Optional that contains a string representing the Google client ID or an empty Optional if the Google client ID was not set.
Link copied to clipboard
Returns an Optional that contains a string representing the Google client secret or an empty Optional if the Google client secret was not set.
Link copied to clipboard
Indicates whether video playback will automatically start after page loading.
Link copied to clipboard
Indicates whether Chromium services that cause additional traffic are disabled.
Link copied to clipboard
Indicates whether DNS Quick Check is disabled in proxy resolution.
Link copied to clipboard
Indicates whether file access from files is allowed.
Link copied to clipboard
Indicates whether GPU is disabled.
Link copied to clipboard
Indicates whether the default profile of the Engine instance is incognito.
Link copied to clipboard
Indicates whether media routing is enabled for the Engine instance.
Link copied to clipboard
Indicates whether the given proprietary feature is enabled.
Link copied to clipboard
Indicates whether the sandbox is disabled.
Link copied to clipboard
Indicates whether touch popup menu is disabled.
Link copied to clipboard
Indicates whether the same-origin policy is disabled.
Link copied to clipboard
open fun language(): Language
Returns the Chromium language that is used on the default error pages and message dialogs.
Link copied to clipboard
Returns an Optional that contains a string representing the license key or an empty Optional if the license key was not set.
Link copied to clipboard
Creates a new EngineOptions builder.
Link copied to clipboard
Returns an Optional that contains the password store type or an empty Optional if the password store type was not set.
Link copied to clipboard
Returns a set of enabled proprietary features.
Link copied to clipboard
Returns an Optional that contains the number representing the remote debugging port or an empty Optional if the remote debugging port was not set.
Link copied to clipboard
Returns how many seconds JavaScript can block the page before it is considered hanged.
Link copied to clipboard
Returns the rendering mode indicating how the content of the web pages will be rendered.
Link copied to clipboard
Returns an immutable map of the schemes that will be intercepted.
Link copied to clipboard
Returns an immutable list of the insecure origins that will be treated as secure.
Link copied to clipboard
open fun switches(): List<String>
Returns an immutable list of the Chromium switches that will be passed to the Chromium Main process.
Link copied to clipboard
Returns an Optional that contains a string that is used to override the default user agent or an empty Optional if the custom user agent string was not set.
Link copied to clipboard
open fun userDataDir(): Path
Returns an absolute path to the directory where the user data is stored.